<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<div class="middle">
    
    <div class="pad10">
       
        <div class="padtop10">
            
            <?php
            if(isset($mess) && $mess != '')
            {
            ?>
                <p class="pad10 text-center"><?php echo $mess; ?></p>
            <?php
            }
            ?>
        
            <form action="<?php echo site_url('settings/set_config_site_channel'); ?>" method="post" name="frmTemplate" id="frmTemplate">
                <p class="padbottom10">
					<b>Config list site name</b>: Tổng số channel = <b style="font-size: 18px;"><?php echo $numChannelId; ?></b>
				</p>
				<textarea rows="10" cols="100" style="padding:10px; width: 900px; line-height: 1.8;"><?php echo $info['CPC_lstallchannel']; ?></textarea>
				<br /><br />
				<p class="padbottom10">
					<b>Config list site name</b>: Tổng số website = <b style="font-size: 18px;"><?php echo $numSite; ?></b>
				</p>
				<textarea rows="15" cols="100" style="padding:10px; width: 900px; line-height: 1.8;"><?php echo $info['CPC_lstallsite']; ?></textarea>
				<br /><br />
                <input  class="ver-middle" type="button" class="bold" value="  Reset  " onclick="tmpSubmit();" />
                <img src="/admin/images/ajaxLoading.gif" class="ver-middle marleft5" id="loading" style="display: none;" />

            </form>
        </div>
        
    </div>

</div>

<script type="text/javascript">
    function tmpSubmit()
    {
        if(confirm('Are you sure?'))
        {
        	var _onSuccess = function(data)
        	{
        		if($.trim(data) == 'ok')
        		{
        			alert('Reset ok');
        			window.location.reload(true);
       			}
        	};
        	$('#loading').show();
            getAjax('/admin/settings/set_config_site_channel', 'set=1','', '', '', false, _onSuccess);
        }
    }
</script>